package com.etc.dao.impl;

import java.util.List;

import org.junit.BeforeClass;
import org.junit.Test;

import com.etc.dao.OrdersDao;
import com.etc.entity.Orders;
import com.etc.entity.Person;

public class OrdersDaoImplTest {
	
	static OrdersDao ordersDao = null;
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		ordersDao = new OrdersDaoImpl();
	}

	@Test
	public void testSelectPersonByOrder() {
		int personId =1;
		List<Orders> list = ordersDao.selectOrdersByPerson(personId);
		System.out.println(list);
	}

}
